const { Buffer } = require('buffer');

const buf = Buffer.alloc(4);
console.log(buf);
// => <Buffer 00 00 00 00>

const buf1 = Buffer.alloc(4, 1);
console.log(buf1);
// => <Buffer 01 01 01 01>

const buf2 = Buffer.allocUnsafe(4);
console.log(buf2);
// => <Buffer 00 00 00 00> maybe something else

const buf3 = Buffer.from([1, 2, 3, 4]);
console.log(buf3);
// => <Buffer 01 02 03 04>
